﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="News_Edit.aspx.cs" Inherits="admin_News_Edit" EnableEventValidation="false"%>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
      <link href="img/admin_css.css" rel="stylesheet" type="text/css" />
               <SCRIPT>
function loadThreadFollow(t_id,b_id){
	var targetImg =eval("document.all.followImg" + t_id);
	var targetDiv =eval("document.all.follow" + t_id);
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			
		}else{
			targetDiv.style.display="none";
		}
	}
}
</SCRIPT>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
<table width="786" border="0" cellpadding="0" cellspacing="1" bgcolor="#E2E2E2">
  <tr>
    <td height="30" colspan="2" align="center"  class="font_1">发　布　新　闻</td>
  </tr>
  <tr>
    <td height="32" align="right" bgcolor="#F2F2F2">分类：</td>
    <td bgcolor="#FAFAFA"><asp:DropDownList ID="DropDownList1" runat="server">
    </asp:DropDownList>    </td>
  </tr>
  <tr>
    <td width="17%" height="32" align="right" bgcolor="#F2F2F2">标题：</td>
    <td width="83%" bgcolor="#FAFAFA"><asp:TextBox ID="TextBox1" runat="server" Width="310px"></asp:TextBox></td>
  </tr>
  <tr>
    <td height="32" align="right" bgcolor="#F2F2F2">来源：</td>
    <td bgcolor="#FAFAFA"><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
  </tr>
    <tr>
    <td height="32" align="right" bgcolor="#F2F2F2">作者：</td>
    <td bgcolor="#FAFAFA"><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox></td>
  </tr>
    <tr>
    <td height="32" align="right" bgcolor="#F2F2F2">新闻图片：</td>
    <td bgcolor="#FAFAFA"><asp:TextBox ID="txtProImg" runat="server" Width="169px"></asp:TextBox><SPAN id=followImg1 style="CURSOR: hand"  onclick=loadThreadFollow(1,5)>上传图片↓</SPAN>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#ff0000>显示首页</font><asp:CheckBox ID="CheckBox3" runat="server"/>    </td>
  </tr>
      <tr  id=follow1 style="DISPLAY: none">
    <td height="32" align="right" bgcolor="#F2F2F2"></td>
    <td bgcolor="#FAFAFA"><asp:FileUpload ID="FileUpload1" runat="server" Width="247px"  Height="22" />
        <asp:Button ID="UpImg" runat="server" Text="上传" OnClick="UpImg_Click"/></td>
  </tr>
  <tr>
    <td height="400" align="right" bgcolor="#F2F2F2">内容：</td>
    <td bgcolor="#FAFAFA"><ftb:FreeTextBox id="ftbContent" runat="server"  ></ftb:FreeTextBox></td>
  </tr>
  <tr>
    <td height="32" align="right" bgcolor="#F2F2F2">是否锁定：</td>
    <td bgcolor="#FAFAFA"><asp:CheckBox ID="CheckBox1" runat="server" Text="选中为锁定" /></td>
  </tr>
  <%--<tr>
    <td height="32" align="right" bgcolor="#F2F2F2">首页显示：</td>
    <td bgcolor="#FAFAFA"><asp:CheckBox ID="CheckBox2" runat="server" Text="选中为显示" /></td>
  </tr>--%>
  <tr>
    <td height="43" align="right" bgcolor="#F2F2F2">&nbsp;</td>
    <td bgcolor="#FAFAFA"><div style=" padding-left:230px;"><asp:Button ID="Button1" runat="server" Text="确认执行" OnClick="Button1_Click" /></div></td>
  </tr>
</table>




    
    </div>
    </form>
</body>
</html>
